package pe.edu.upc.dew.grupo3a.service;

import pe.edu.upc.dew.grupo3a.dao.TicketsDao;
import pe.edu.upc.dew.grupo3a.model.Ticket;

public class TicketServiceImp implements TicketService {

	TicketsDao ticketDao;
	
	@Override
	public void insertarTicket(Ticket ticket) {
		ticketDao.insertarTicket(ticket);
	}
	
	public void setTicketDao(TicketsDao ticketDao) {
		this.ticketDao = ticketDao;
	}

	@Override
	public Ticket getTicketPorCodigo(String codigo){
		return ticketDao.getTicketPorCodigo(codigo);
	}
	
}